package tools.lombok;

public class MainDemo {

    public static void main(String[] args) {
        jsr269Test();
    }

    @MyAnnotation(value = "hello, this is MyAnnotation!")
    @MyAnnotation2(value = "hello, this is MyAnnotation2!")
    public static void jsr269Test(){

    }

    public void lombokTest(){
        TestEntity entity = TestEntity.builder().name("张三").age(18).build();
        entity.setNation("汉族");
        System.out.println(entity.toString());

        entity = TestEntity.builder().name("张三").age(18).hobby("篮球").hobby("羽毛球").build();
        entity.setNation("蒙古族");
        System.out.println(entity.toString());

        System.out.println(TestEntity.builder().name("张三").age(18).toString());

        System.out.println(TestEntity.TestEntityBuilder.class.getName());

        TestEntity.of(null,1,null,null);
    }
}
